﻿GBounds = function(points) 
{
	/// <summary>Constructs a rectangle that contains all the given points.</summary>
	/// <param name="points">Points that compose the rectangle.</param>
	/// <field name="minX" type="Number">The x coordinate of the left edge of the rectangle.</field>
	/// <field name="minY" type="Number">The y coordinate of the top edge of the rectangle.</field>
	/// <field name="maxX" type="Number">The x coordinate of the right edge of the rectangle.</field>
	/// <field name="maxY" type="Number">The y coordinate of the bottom edge of the rectangle.</field>
	/// <returns type="Object"></returns>
}

GBounds.prototype = 
{
	toString : function() 
	{
		/// <summary>Returns a string that contains the coordinates of the upper left and the lower right corner points of the box, in this order, separated by comma, surrounded by parentheses.</summary>
		/// <returns type="String"></returns>
	},
	
	equals : function(other) 
	{
		/// <summary>Returns true if all parameters in this rectangle are equal to the parameters of the other. (Since 2.98)</summary>
		/// <param name="other" type="GBounds">GBounds to compare</param>
		/// <returns type="Boolean"></returns>
	},
	
	mid : function() 
	{
		/// <summary>Returns the pixel coordinates of the center of the rectangular area. (Since 2.88)</summary>
		/// <returns type="GPoint"></returns>
	},
	
	min : function() 
	{
		/// <summary>Returns the pixel coordinates of the upper left corner of the rectangular area.</summary>
		/// <returns type="GPoint"></returns>
	},
	
	max : function() 
	{
		/// <summary>Returns the pixel coordinates of the lower right corner of the rectangular area.</summary>
		/// <returns type="GPoint"></returns>
	},
	
	containsBounds : function(other) 
	{
		/// <summary>Returns true if the passed rectangular area is entirely contained in this rectangular area.</summary>
		/// <param name="other" type="GBounds">Possible containing GBounds.</param>
		/// <returns type="Boolean"></returns>
	},
		
	containsPoint : function(point) 
	{
		/// <summary>Returns true if the rectangular area (inclusively) contains the pixel coordinates. (Since 2.88)</summary>
		/// <param name="point" type="GPoint">Possible contained GPoint.</param>
		/// <returns type="Boolean"></returns>
	},
	
	extend : function(point) 
	{
		/// <summary>Enlarges this box so that the point is also contained in this box.</summary>
		/// <param name="point" type="GBounds">GPoint to be contained.</param>
	}
}